<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0032)http://localhost/news//index.php -->
<?php require 'config.php'; ?>
<HTML><HEAD><TITLE><?php print $title; ?></TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK 
href="css.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="jsfunc.js" 
type=text/javascript></SCRIPT>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<style type="text/css">
<!--
.style1 {font-size: 10}
-->
</style>
</HEAD>
<BODY bgcolor="#000000" text="#FFFFFF" leftMargin=9 topMargin=9>
<DIV align=center>
<TABLE width=100 height="100" border=0 align="center" cellPadding=0 cellSpacing=0>
  <!--DWLayoutTable-->
  <TBODY>
  <TR>
    <TD width="975" height="25">&nbsp;</TD>
  </TR>
  <TR>
    <TD height="492" vAlign=top><TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
            <TBODY>
            <TR>
            <TD class=spacerTable1 vAlign=center><IMG height=1 
            src="f u s i o n  Logged in.files/spacer.gif" 
      width=1></TD></TR></TBODY>
      </TABLE>
        <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
            <TBODY>
            <TR>
              <TD vAlign=center><div align="center">
         <?php require 'config.php'; ?>
		      </div></TD>
            </TR></TBODY>
        </TABLE>        <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
            <TBODY>
            <TR>
            <TD class=spacerTable3 vAlign=center><IMG height=1 
            src="f u s i o n  Logged in.files/spacer.gif" 
      width=1></TD></TR></TBODY>
        </TABLE>        <table class=mainBG " 
       cellspacing=1 
      cellpadding=2 width=100% border=0>
            <tbody>
              <tr>
                <td class=headBG1 valign=center><div align="right">
                </div></td>
              </tr>
              <tr>


                    <table width="25%" border="0.5">
                    </table>
<?php 
$login = stripslashes($_POST['login']);
$sql_login_check = mssql_query("SELECT fpas_ques FROM memb_info WHERE memb___id = '$login'"); 
$sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$login'"); 
$username_check = mssql_num_rows($sql_username_check); 
if (empty($login) || ($username_check <= 0)) 
{
echo "Error: <br>";
if (empty($login))
echo '<p align="center">Some fields were left blank. Please go back and try again.';
elseif (($username_check <= 0))
echo '<p align="center">Login does not exist in database. Please go back and try again.';
}
else 
{
echo '<form action="getpwddone.php" method="post" name="form1">
                        <h6><font size="3">Recuperar senha passo 2/2 </h6></font>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="30%"><div align="right">
                                <h6><font face="Verdana, Arial, Helvetica, sans-serif">E-Mail:</font></h6>
                            </div></td>
                            <td colspan="3"><h6><font face="Verdana, Arial, Helvetica, sans-serif">
                                <input name="email" type="text" id="email" maxlength="50">
                          E-mail do cadastro.</font></h6></td>
                          </tr>
                          <tr>
                            <td><div align="right">
                                <h6><font face="Verdana, Arial, Helvetica, sans-serif">Pergunta Secreta:</font></h6>
                            </div></td>
                            <td colspan="3">
                                <h4>
                                  <input name="ques" type="text"  readonly="';
echo mssql_result($sql_login_check, 0, 0);
echo '" id="ques" value="';
echo mssql_result($sql_login_check, 0, 0);
echo '"></h4></td>
                          </tr>
                          <tr>
                            <td><div align="right">
                                <h6>Resposta Secreta: </h6>
                            </div></td>
                            <td colspan="3"><h6><font face="Verdana, Arial, Helvetica, sans-serif">
                                <input name="answer" type="text" id="answer" maxlength="10">
                          A mesma do cadastro</font></h6></td>
                          </tr>
                          <tr>
                            <td><div align="right">
                                <h6>ID Numero do bau:</h6>
                            </div></td>
                            <td colspan="3"><h6><font face="Verdana, Arial, Helvetica, sans-serif">
                                <input name="idnumb" type="text" id="idnumb" maxlength="12">
                          O mesmo do cadastro. </font></h6></td>
                          </tr>
                          <tr>
                            <td><div align="right"></div></td>
                            <td width="5%">&nbsp;</td>
                            <td width="10%"><input type="submit" name="Submit" value="Recuperar">
                            </td>
                            <td width="55%"><input type="reset" name="Submit2" value="Apagar">
                            </td>
                          </tr>
                        </table>
                    </form>';
}
?>
                    <table width="100%" height="5%" border="0.5">
                      <tr> </tr>
                      <tr>
                        <th scope="col"></th>
                      </tr>
                    </table>
          </div></td>
              </tr>
              <tr>
                <td class=headBG1 valign=center><div align="center"><span class=textLogin><?php print $credits; ?> </span></div></td>
              </tr>
            </tbody>
          </table>
    </TD>
  </TR>
</TBODY></TABLE>
</DIV></BODY></HTML>
